<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style type="text/css">
	table{
		border-collapse:collapse;
	}
	</style>
</head>
<body>
@include('form.menu')
<center>
	<table border="1">
		<tr>
			<th>ID</th>
			<th>姓名</th>
			<th>性别</th>
			<th>年龄</th>
			<th>班级</th>
			<th>操作</th>
		</tr>
		@foreach($list as $v)
			<tr>
				<td>{{$v['id']}}</td>
				<td>{{$v['name']}}</td>
				<td>
					@if($v['sex']==1)
					男
					@else
					女
					@endif
				</td>
				<td>{{$v['age']}}</td>
				<td>{{$v['classid']}}</td>
				<td>
					<a href="/index/del/{{$v['id']}}">删除</a> |
					<a href="/index/edit/{{$v['id']}}">修改</a>
				</td>
			</tr>
		@endforeach
	</table>
</center>
</body>
</html>